<?php

namespace app\api\validate;

use think\Validate;

class HomeRequicomment extends Validate
{
    protected $rule =   [
        'requirement_id|需求id'=>'require|number',
        'comment_id|评论id'=>'require|number',
    ];

    protected $scene = [   
        'add'=>['requirement_id'],     
        'del'=>['comment_id'],
        'upd'=>['comment_id'],
    ];
}